package com.neusoft.elmboot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.neusoft.elmboot.po.Food;

@Mapper
public interface FoodMapper {
	
	@Select("SELECT * FROM food WHERE businessId = #{businessId} ORDER BY foodId")
	public List<Food> listFoodByBusinessId(Integer businessId);
	
	@Select("SELECT * FROM food WHERE foodId=#{foodId} ")
	public Food getFoodById(Integer foodId);
}
